package com.crux.jpa.version.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

/***
 *  CREATE GLOBAL TEMPORARY TABLE temp_t_user(
 *                     ID     varchar2(64) primary key,
 *                     SEQ_ID varchar2(64),
 *                     ORG_ID NUMBER(19)
 *                 ) ON COMMIT PRESERVE ROWS
 */
@Entity
@Table(name = "temp_t_user")
@GenericGenerator(name = "crux-jpa-uuid", strategy = "uuid")
@Getter
@Setter
public class TempUser {
    @Id
    @GeneratedValue(generator = "crux-jpa-uuid")
    @Column(length = 64)
    private String id;
    @Column
    private String seqId;
    @Column
    private Long orgId;


}
